<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<%@ include file="../../../common/jsp/include.jsp"%>
        <script type="text/javascript" src="<c:url value="/miniui/base/model/baseModel_edit.js"/>"></script>
		<style type="text/css">
html,html body {
	padding: 0;
	border: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-family: Verdana;
	font-size: 12px;
	line-height: 22px;
}

.header {
	background: url(../header.gif) repeat-x 0 -1px;
}
</style>
	</head>

	<body>
    <form id="form1" action="/base/model/update.do" method="post" onSuccess="onSaveSuccess">
    <table class="my_table_div" style="width: 100%;height: 100%;">
        <tr>
            <td style="height: 90%">
                   <table class="" style="width: 100%;height: 100%;" >
                      <tr>
                          <td valign="top">
                              <table class="my_table" style="" border="0" cellpadding="1"
                                            cellspacing="0" align="center">
                                <tr>
                                    <td class="mini-tdTitle" colspan="4">
                                        Edit BaseModel
                                    </td>
                                </tr>
                                <tr>
                                    <td class="mini-td" align="right"  style="width: 20%">
                                        PIDName:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left" style="width: 30%">
                                        <input type="hidden" id="id" name="id" value="${model.data.id}"/>
                                        <input id="pidName"  name="pidName" class="mini-textbox" required="false" style="width: 100%" readonly="readonly" value=""/>
                                    </td>
                                    <td class="mini-td" align="right"  style="width: 20%">
                                        Name:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left" style="width: 30%">
                                        <input id="name"  name="name" class="mini-textbox" required="true" style="width: 100%" value="${model.data.name }"/>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="mini-td" align="right"  style="width: 20%" >
                                        SortID:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left">
                                        <input id="sort"  name="sort" class="mini-textbox" required="true" vtype="int" style="width: 100%" value="${model.data.sort}" />
                                    </td>
                                    <td class="mini-td" align="right"  style="width: 20%">
                                        Display:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left">
                                        <input id="display" required="true"  name="display" showNullItem="true" class="mini-combobox" url="/psw/miniui/base/model/select.txt" value="${model.data.display}" textField="text" valueField="id" />
                                        <br />
                                        <span id="combobox_error" style="color:Red;"></span>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="mini-td" align="right"  style="width: 20%">
                                        BaseModelUrl:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left" colspan="3">
                                        <input id="url"  name="url" class="mini-textbox" required="false" style="width: 100%" value="${model.data.url}"/>
                                    </td>
                                </tr>
                                  <tr>
                                    <td class="mini-td" align="right"  style="width: 20%">
                                        Enabled:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left"  style="height: 25px">
                                        <input id="enabled" name="enabled" class="mini-checkbox"  value="Y" trueValue="Y" falseValue="N" />
                                    </td>
                                    <td class="mini-td" align="right"  style="height: 25px" colspan="2">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="mini-td" align="right"  style="width: 20%">
                                        Remark:&nbsp;
                                    </td>
                                    <td class="mini-td" align="left" colspan="3">
                                        <input id="remark"  name="remark" class="mini-textbox" required="false" style="width: 100%" value="${model.data.remark}" />
                                    </td>
                                </tr>
                            </table>
                          </td>
                      </tr>
                </table>
            </td>
        </tr>
        <tr>
             <td class="my_table_button" style="height: 5%" align="center">
                  <a class="mini-button" iconCls="icon-add" onclick="onOk">Save</a>
                    &nbsp;
                    <a class="mini-button" iconCls="icon-edit" onclick="onCancel">Canel</a>
             </td>
        </tr>
    </table>
    </form>
    <script type="text/javascript">
        mini.parse();
    </script>

	</body>
</html>
